package com.hmall.item.interceptor;

import org.springframework.context.annotation.Bean;


public class BaseContext {
    private static ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static void setCurrentID(String id){
        threadLocal.set(id);
    }

    public static String getCurrentID(){
        return threadLocal.get();
    }
}
